package day0309;

import java.io.FileOutputStream;
import java.io.IOException;

public class AutocloseDemo {
    public static void main(String[] args) {
        try(   FileOutputStream fos = new FileOutputStream("./a/b/666.txt"))
        {
            fos.write(1);
        }catch (IOException e){
            e.getMessage();
            e.printStackTrace();
        }

        System.out.println("完毕");
    }
}
